package com.ld.admin.util.daliySentence.model;

import lombok.Data;

/**
 * 
 * 每日一句设置条目类
 * 
 * @author <a href="mailto:donggongai@126.com" target="_blank">吕凯</a>
 * @date 2020年10月27日 下午4:26:42
 *
 */
@Data
public class DaliySentenceBaseInfo {
    private boolean enable = true; // 是否启用
    private String key; // 启用类型
    private String name;
    private String url; // 获取内容的url
    private String linkUrl; // 链接地址
    private String description; // 简介

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        DaliySentenceBaseInfo other = (DaliySentenceBaseInfo) obj;
        if (key == null) {
            if (other.key != null)
                return false;
        } else if (!key.equals(other.key))
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((key == null) ? 0 : key.hashCode());
        return result;
    }

}
